Previous Book Contents Book Index Next

Inside Macintosh: Programming With the Text Encoding Conversion Manager /
Chapter 2 - Basic Text Types Reference / Basic Text Functions
Creating a Text Encoding Specification /


CreateTextEncoding

Creates and returns a text encoding specification.

pascal TextEncoding CreateTextEncoding (
                     TextEncodingBase encodingBase,
                     TextEncodingVariant encodingVariant, 
                     TextEncodingFormat encodingFormat); 
encodingBase
A base text encoding of type TextEncodingRun (page 46).
encodingVariant
A variant of the base text encoding. To specify the default variant for the base encoding given in the encodingBase parameter, you can use the kTextEncodingDefaultVariant constant.
encodingFormat
A format for the base text encoding. To specify the default format for the base encoding, you can use the kTextEncodingDefaultFormat constant.
function result
The text encoding specification that the function creates from the values you pass it.
DISCUSSION
When you create a text encoding specification, the three values that you specify are packed into an unsigned integer, which you can then pass by value to the functions that use text encodings.

SEE ALSO
The data type TextEncodingRun (page 46)

"Text Encoding Variant" (page 35)

"Text Encoding Format" (page 40)


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 NOV 1997